package d6_map_impl;

import java.util.HashMap;
import java.util.Map;

public class MapTest1 {
    public static void main(String[] args) {
        //目标: 掌握Map集合(键)去重复的机制。
        Map<Movie, String> map = new HashMap<>();
        map.put(new Movie("遮天", 9.8, "姬紫月,叶凡"),"周三上午10:00");
        map.put(new Movie("一年永恒", 9.7, "张小凡,红尘女"),"周三上午10:00");
        map.put(new Movie("沧元图", 8.9, "孟川"),"周五上午10:00");
        map.put(new Movie("凡人修仙传", 9.9, "韩立"),"周六上午11:00");
        map.put(new Movie("凡人修仙传", 9.9, "韩立"),"周六上午11:00");
        System.out.println(map);
    }
}
